home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
AND.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
42 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_AND( nBinNum1, nBinNum2 ) --> nInteger
PARAMETERS:
nBinNum1 : Binary Number to AND with nBinNum2
nBinNum2 : Binary Number to AND with nBinNum1
SHORT:
Perform Binary AND operation.
DESCRIPTION:
_AND() performs a bitwise AND on two binary numbers. The two numbers
are padded to the same number of positions (to a maximum of 8 digits)
before the operation takes place in order to retain positional values:
100101 AND 101 becomes 100101 AND 000101
NOTE:
EXAMPLE:
t = _AND(1011,11)
original 1011 Both params are padded to eight places 00001010
Second 11 00000011
--------
Result: 00000010
Result: t = 10 (leading zeros ignored in RETURN())
******************************************************************************/